package com.hc.oa.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;

/**
 * pm_task_types:
 */
@Entity
@Table(name = "pm_task_types")
public class PmTaskTypes implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * task_type_id:
	 */
	private byte taskTypeId;

	/**
	 * task_type_name:
	 */
	private String taskTypeName;

	/**
	 * description:
	 */
	private String description;

	public PmTaskTypes() {
		super();
	}

	public PmTaskTypes(byte taskTypeId, String taskTypeName,
			String description) {
		super();
		this.taskTypeId = taskTypeId;
		this.taskTypeName = taskTypeName;
		this.description = description;
	}

	public void setTaskTypeId(byte taskTypeId) {
		this.taskTypeId = taskTypeId;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "task_type_id", nullable = false)
	public byte getTaskTypeId() {
		return taskTypeId;
	}

	public void setTaskTypeName(String taskTypeName) {
		this.taskTypeName = taskTypeName;
	}

	@Column(name = "task_type_name", length = 32)
	public String getTaskTypeName() {
		return taskTypeName;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "description", length = 80)
	public String getDescription() {
		return description;
	}

	public String toString() {
		return "PmTaskTypes [taskTypeId=" + taskTypeId + ",taskTypeName="
				+ taskTypeName + ",description=" + description +"]";
	}

}
